{{partial('public/header')}}
<script>
$(document).ready(function() {
	
$('#oneid').change(function(){
	$("#stwoid").html('<img src="'+siteUrl+'static/images/loading.gif" />');
	var oneid = $(this).children('option:selected').val();  //弹出select的值
	
	if(oneid==0){
		$("#stwoid").html('');
	 }else{
		$.ajax({
			type: "POST",
			url:  "{{url('group/manage/ajax_getcate')}}",
			data: {oneid:oneid},
			success: function(msg){ 
				$("#stwoid").html(msg);				
			}
		});
	
	}
	
});

});
</script>

<div class="midder">
    <h1>{{seo.title}}</h1>
    <div class="mc">
		
        <div class="cleft">
        {{partial('manage/edit_xbar')}}
        
        <form method="POST" action="{{url('group/manage/edit/'~strGroup['groupid'])}}"  enctype="multipart/form-data" onsubmit="return createGroup(this);">
        <table width="100%" cellpadding="0" cellspacing="0" class="table_1">
            <tr>
                <th>小组名称：</th>
                <td><input type="text" value="{{strGroup['groupname']}}" maxlength="32" size="31" name="groupname" tabindex="1" class="txt"    placeholder="给小组起个醒目的名称吧"></td>
            </tr>
            <tr>
                <th>小组分类：</th>
                <td>
<select id="oneid" name="oneid" class="txt">
<option value="0">请选择</option>
{% for vo in arrOne %}
	{% if strCate['referid'] == vo['cateid'] %}
	<option value="{{vo['cateid']}}" selected>{{vo['catename']}}</option>
    {% else %}
	<option value="{{vo['cateid']}}">{{vo['catename']}}</option>    
 	{% endif %}
{% endfor %}
</select>&nbsp;
<span id="stwoid">
<select id="twoid" name="twoid" class="txt">
<option value="0">请选择</option>
{% for vo in arrTwo %}
	{% if strGroup['cateid'] == vo['cateid'] %}
	<option value="{{vo['cateid']}}" selected>{{vo['catename']}}</option>
    {% else %}
	<option value="{{vo['cateid']}}">{{vo['catename']}}</option>    
 	{% endif %}
{% endfor %}
</select>	
</span>
	</td>
            </tr>            
            <tr>
                <th>小组描述：</th>
                <td><textarea style="width:500px;height:200px;" name="groupdesc" tabindex="2" id="editor_mini" class="txt"   placeholder="介绍一下小组是干什么的，它将作为黑板报显示">{{strGroup['groupdesc']}}</textarea></td>
            </tr>
            <tr>
                <th>&nbsp;</th>
                <td>
                <input type="hidden" name="{{security.getTokenKey()}}" value="{{security.getToken()}}">
                <input class="submit" type="submit" value="保存修改" tabindex="6"/></td>
            </tr>
        </table>
        </form>
        </div>
    
        <div class="cright">
<p class="pl2">&gt; <a href="{{url('group/show/'~strGroup['groupid'])}}">返回{{strGroup['groupname']}}</a></p>        
        </div>

	</div>

</div>                
